<template>
  <div>
    <Demo v-if="isShow" />
    <button @click="isShow=false">杀掉组件</button>
  </div>
</template>

<script>
import Demo from './components/Demo.vue'
export default {
  components:{
    Demo
  },
  data() {
    return {
    isShow:true
    };
  }
};
</script>

<style lang="scss" scoped>

</style>